package org.pupil.rpc.tolerant.FaultTolerantStrategyImpl;

import org.pupil.rpc.tolerant.FaultTolerantStrategy;
import org.pupil.rpc.tolerant.FaultTolerantStrategyShareContainer;

/**
 * 忽略错误
 */
public class FailsafeFaultTolerantStrategy implements FaultTolerantStrategy {
    @Override
    public void handler() {
        // 获取容错策略数据共享容器
        FaultTolerantStrategyShareContainer shareContainer = FaultTolerantStrategyShareContainer.getInstance();
        // 设置有返回值
        shareContainer.setIsReturnValue(true);
        // 设置返回值
        shareContainer.setReturnValue(null);
    }
}
